import { defineStore } from "pinia";

export const orderListStore = defineStore("orderListStoreIdCpas", () => {
    const detailData = ref([
        {
            type: "text",
            prop: "channelMerchantType",
            name: "渠道商类型",
            value: null
        },
        {
            type: "text",
            prop: "channelMerchantCode",
            name: "渠道商编码",
            value: null
        },

    ])
    const tableProp = reactive(
        {
            name: "supplierList",
            propsList: [
                {
                    prop: "productCode",
                    label: "产品编码",
                    type: 'normal',
                    minWidth: '90px',
                    hidden: true,
                },
                {
                    prop: "productName",
                    label: "产品名称",
                    type: 'normal',
                    width: '240px',
                    hidden: true,
                },
                {
                    prop: "channelName",
                    label: "渠道名称",
                    type: 'normal',
                    width: '150px',
                    hidden: true,
                },
                {
                    prop: "channelKey",
                    label: "渠道Key",
                    type: 'normal',
                    width: '80px',
                    hidden: true,
                },
                {
                    prop: "channelCode",
                    label: "渠道编码",
                    type: 'normal',
                    width: '270px',
                    hidden: true,
                },
                {
                    label: "供应商编码",
                    prop: "supplierCode",
                    type: 'normal',
                    minWidth: '110px',
                    hidden: true,
                },
                {
                    prop: "supplierKey",
                    label: "供应商Key",
                    type: 'normal',
                    width: '90px',
                    hidden: true,
                },
                {
                    label: "供应商名称",
                    prop: "supplierName",
                    type: 'normal',
                    minWidth: '150px',
                    hidden: true,
                },
                {
                    prop: "orderNo",
                    label: "订单号",
                    type: 'normal',
                    width: '190px',
                    hidden: true,
                },
                {
                    prop: "mobile",
                    label: "手机号",
                    type: 'normal',
                    minWidth: '130px',
                    hidden: true,
                },
                {
                    prop: "orderTime",
                    label: "操作时间",
                    type: 'normal',
                    width: '170px',
                    hidden: true,
                },

 
                {
                    prop: "outOrderStatusDetail",
                    label: "详情描述",
                    type: 'normal',
                    minWidth: '170px',
                    hidden: true,
                },
                {
                    prop: "orderStatus",
                    label: "订单状态",
                    type: 'custom',
                    slotName:'orderStatus',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    prop: "outOrderNo",
                    label: "外部订单",
                    type: 'normal',
                    minWidth: '180px',
                    hidden: true,
                },
                {
                    prop: "orderSuccessTime",
                    label: "成功时间",
                    type: 'normal',
                    minWidth: '170px',
                    hidden: true,
                },
                {
                    prop: "isp",
                    label: "运营商",
                    type: 'custom',
                    slotName:'isp',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    prop: "attributionLocation",
                    label: "号码归属地",
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    prop: "positioningRegion",
                    label: "定位地区",
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    prop: "isUnsubscribe",
                    label: "是否退订",
                    type: 'custom',
                    slotName:'isUnsubscribe',
                    minWidth: '70px',
                    hidden: true,
                },
                {
                    prop: "unsubscribeTime",
                    label: "退订时间",
                    type: 'normal',
                    minWidth: '170px',
                    hidden: true,
                },
                {
                    type: 'handle',
                    label: '操作',
                    minWidth: '100px',
                    btnType: ' link',
                    slotName: 'handle',
                    hidden: true,
                }
            ]
        })

    return {
        detailData, tableProp
    }
})